{% extends "base.html" %}
{% load url from future %}

{% block content %}
    {% if reports %}
    {{ request }}
    {% for report in reports %}
            <a href="{% url 'show_report' report.id %}">Show report {{ report.id }}</a><br />
        {% endfor %}
    {% else %}
        <h1>Post a Spy Report</h1>
        <form action="" method="post">
            {% csrf_token %}
            <textarea name="report" cols="80" rows="10"></textarea>
            <br />
            <input type="submit" value="Post" />
        </form>
    {% endif %}

{% endblock %}
